﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Computer
    {
        private string brand;

        private IUSB u1;
        private IUSB u2;

        public string Brand { get => brand; set => brand = value; }
        internal IUSB U1 { get => u1; set => u1 = value; }
        internal IUSB U2 { get => u2; set => u2 = value; }

        public void Star()
        {
            Console.WriteLine("{0}品牌的电脑开机中......",this.brand);
        }
        public void End()
        {
            Console.WriteLine("{0}品牌的电脑关机中......", this.brand);
        }

        public Computer(string brand) 
        {
            this.brand = brand;
        }

        public void Readdate()
        {
            u1.Read();
            u2.Read();
        }

        public void Writedate()
        {
            u1.Write();
            u2.Write();
        }
    }
}
